<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改雇员工种统计')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-taskCateUser-edit" th:object="${hhTaskCateUser}">
            <input name="id" th:field="*{id}" type="hidden">
            <input name="cateId" th:field="*{cateId}" class="form-control" type="hidden">
            <input name="userId" th:field="*{userId}" class="form-control" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">工种名称：</label>
                <div class="col-sm-8">
                    <input name="cateName" th:field="*{cateName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">工作时长(小时)：</label>
                <div class="col-sm-8">
                    <input name="cateTime" th:field="*{cateTime}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作次数：</label>
                <div class="col-sm-8">
                    <input name="cateNum" th:field="*{cateNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">评价次数：</label>
                <div class="col-sm-8">
                    <input name="cateComment" th:field="*{cateComment}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">好评次数：</label>
                <div class="col-sm-8">
                    <input name="cateGood" th:field="*{cateGood}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/user";
        $("#form-taskCateUser-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/my_cate_edit", $('#form-taskCateUser-edit').serialize());
            }
        }
    </script>
</body>
</html>